// Ionic_SDK
// 
// 保佑没Bug 
//
// Created by AS on 2019/4/14. 
//
// Copyright © 2018 AS. All rights reserved.
// 

#import "UserInfo.h"

@implementation UserInfo

+(UserInfo *)getUserInfo{
    
    
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    
    NSString *json = [defaults objectForKey:@"userInfo"];
    if (!json) {
        return nil;
    }
    id obj = [NSJSONSerialization JSONObjectWithData:[json dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingAllowFragments error:nil];
    UserInfo *user = [UserInfo mj_objectWithKeyValues:obj];
    return user;
}


@end
